package club.yunqiang.zbs.controller;

import club.yunqiang.zbs.bean.Autowired;
import club.yunqiang.zbs.bean.Bean;
import club.yunqiang.zbs.service.SalaryService;
import club.yunqiang.zbs.web.mvc.Controller;
import club.yunqiang.zbs.web.mvc.RequestMapping;
import club.yunqiang.zbs.web.mvc.RequestParam;

/**
 * @author 张云强
 * @date 2019/7/7
 */
@Controller
public class SalaryController {

    @Autowired
    private SalaryService salaryService;

    @RequestMapping("/get_salary.json")
    public Integer getSalary(@RequestParam("name") String name, @RequestParam("experience") String experience){
        return salaryService.calSalary(Integer.parseInt(experience));
    }

}
